package org.elanfox.intellicommunity.biz.dto.redis;

import lombok.Data;
import org.elanfox.intellicommunity.biz.entity.resident.RoomPO;
import org.elanfox.intellicommunity.data.base.dto.BaseDTO;


/**
 * @author loutianxi
 * @date 2019-12-05
 */
@Data
public class RedisRoomDTO implements BaseDTO {
    private Integer roomId;
    private Long locatorNo;
    private String longitude;
    private String latitude;
    private Integer structureId;

    public RedisRoomDTO() {
        super();
    }

    public RedisRoomDTO(RoomPO obj) {
        this.roomId = obj.getRoomId();
        this.locatorNo = obj.getEquNo();
        this.longitude = obj.getLongitude();
        this.latitude = obj.getLatitude();
        this.structureId = obj.getStructureId();
    }
}
